import * as OSS from 'ali-oss';
const VITE_ACCESS_KEY_ID = import.meta.env && import.meta.env.VITE_ACCESS_KEY_ID
    ? import.meta.env.VITE_ACCESS_KEY_ID
    : process.env.VITE_ACCESS_KEY_ID;
const VITE_ACCESS_KEY_SECRET = import.meta.env && import.meta.env.VITE_ACCESS_KEY_SECRET
    ? import.meta.env.VITE_ACCESS_KEY_SECRET
    : process.env.VITE_ACCESS_KEY_SECRET;
console.log(VITE_ACCESS_KEY_ID, 'VITE_ACCESS_KEY_ID');
const client = new OSS({
    accessKeyId: VITE_ACCESS_KEY_ID,
    accessKeySecret: VITE_ACCESS_KEY_SECRET,
    regoin: 'oss-cn-hangzhou',
    endpoint: 'oss-cn-hangzhou.aliyuncs.com',
    bucket: 'capacity-platform',
    timeout: 600000
});
export default client;
